/*
 * Verzender.cpp
 *
 *  Created on: Apr 4, 2012
 *      Author: s147614
 */

#include "Verzender.h"

Verzender::Verzender(Computer* pc) :
	Thread("Verzender") {
	dbuf = pc->getPanDBuffer();
}

void Verzender::run() {
	while (true) {
		PanoramaBuffer* pb = (PanoramaBuffer*) dbuf->getReadBuffer();
		const byte* data = pb->getData();

		while(*data){
			cout << *data << endl;
			data++;
		}

//		for (int i = 0; i < 9; i++) {
//			cout << "boe" << endl;
//			cout << data[i] << ' ';
//		}
		cout <<"Poepjes" << endl;
	}
}
